package com.hospital.warehouse.drugpurchase.service;

import java.util.List;

import javax.servlet.http.HttpSession;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.util.DTO;
import com.hospital.warehouse.drugpurchase.entity.Drugpurchase;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr. YR
 * @since 2020-04-21
 */
public interface DrugpurchaseService extends IService<Drugpurchase> {

	DTO paging(Drugpurchase dp, Integer page, Integer limit);

	Drugpurchase queryById(Integer dp_id);
	
	List<Drugpurchase> queryByState(String state1,String state2);

	void saveOne(Drugpurchase dp, HttpSession session);

	void updateOne(Drugpurchase dp);

	void updateState(Integer id, String state, HttpSession session);

}
